#include "ChangeSweeperStatus.h"

ChangeSweeperStatus::ChangeSweeperStatus() {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
}

// Called just before this Command runs the first time
void ChangeSweeperStatus::Initialize() {
	
}

// Called repeatedly when this Command is scheduled to run
void ChangeSweeperStatus::Execute() {
	if (discMagnet->MagnetIsUp())
	{
		discMagnet->DiscMagnetControl(DiscMagnet::kDiscMagnetDown);
		} else {
		discMagnet->DiscMagnetControl(DiscMagnet::kDiscMagnetUp);
		
	}
}

// Make this return true when this Command no longer needs to run execute()
bool ChangeSweeperStatus::IsFinished() {
	return true;
}

// Called once after isFinished returns true
void ChangeSweeperStatus::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void ChangeSweeperStatus::Interrupted() {
}
